export default {
	state: {
		token: false,
		userInfo: uni.getStorageSync('userinfo') || []
	},
	mutations: {
		getUserInfo(state, payload) {
			state.token = payload.token;
			state.status = payload.status;
			state.userInfo = payload;
			uni.setStorageSync('userinfo', payload)
			uni.setStorageSync('token', payload.token)
		},
		removeUserInfo(state){
			uni.removeStorageSync('userinfo');
			uni.removeStorageSync('token');
			state.token=false;
			state.status=false;
			state.userInfo=[];
		}
	},
	getters: {

	},
	actions: {

	}

}